package com.leejxx.health.dao;

import com.leejxx.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @Author LeeJx
 * @ClassName MemberDao
 * @Description TODO
 * @date 2021/1/6 15:00
 * @Version 1.0
 */
public interface MemberDao {

    Member findByPhoneNumber(@Param("phoneNumber") String phoneNumber);

    void updateById(Member member);

    void add(Member member);

    Member findById(@Param("id") Integer id);

    Object countByRegTimeRange(@Param("startDate") Date startDate, @Param("endDate") Date endDate);

    Object countByRegTimeBefore(@Param("endDate") String endDate);
}
